﻿<div>
    <div>
        @{ 
            var fileName = Model.ContentItem.Bio.PersonImage.Url;
            if (! string.IsNullOrEmpty(@fileName)) {
                <img src ="@Url.Content(fileName)" height="200" alt="@Model.Title"
                    style ="float:left; margin-right:10px;" />
           }
        }        
        <h1>@Model.ContentItem.TitlePart.Title</h1>    
        <p>籍贯：@Model.ContentItem.Bio.Birthplace.Value</p>
        <p>学历：@Model.ContentItem.Bio.GraduatedFrom.Value</p>
        <p>@Html.Raw(Model.ContentItem.BodyPart.Text)</p>
    </div>
    <p>
        @{  
            var pic1 = Model.ContentItem.Bio.ArtWork1.Url;
            var pic2 = Model.ContentItem.Bio.ArtWork2.Url; 
            var pic3 = Model.ContentItem.Bio.ArtWork3.Url;
            var pic4 = Model.ContentItem.Bio.ArtWork4.Url; 
            if (!string.IsNullOrEmpty(@pic1)) {
                <img src ="@Url.Content(pic1)" height="200" alt="Pic1"
                    style ="float:left; margin-right:10px;" />    
            }
            if (!string.IsNullOrEmpty(@pic2)) {
                <img src ="@Url.Content(pic2)" height="200" alt="Pic2"
                    style ="float:left; margin-right:10px;" />
            }
            if (!string.IsNullOrEmpty(@pic3)) {
               <img src ="@Url.Content(pic3)" height="200" alt="Pic3"
                    style ="float:left; margin-right:10px;" />
            }
            if (!string.IsNullOrEmpty(@pic4)) {
                <img src ="@Url.Content(pic4)" height="200" alt="Pic4"
                    style ="float:left; margin-right:10px;" />
            }
        }
    </p>
    @*@Display(Model.Content)*@
</div>
